class HomeController < ApplicationController

  def index
    set_seo_meta(nil, SiteConfig.home_meta_keywords, SiteConfig.home_meta_description)
    etags = []
    etags << SiteConfig.home_suggest_movie_ids
    etags << SiteConfig.home_us_movie_ids
    etags << SiteConfig.home_cn_movie_ids
    etags << SiteConfig.home_kr_movie_ids
    etags << SiteConfig.home_series_ids
    etags << SiteConfig.home_cartoon_movie_ids
    fresh_when(:etag => etags)
  end

  def error_404

    render file: "#{Rails.root}/public/404.html", status: 404, layout: false
  end
end
